﻿var app = angular.module('myApp', ['ngRoute', 'ui.bootstrap']);


app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
    .when('/', {
        templateUrl: '/app/views/HomeView.html',
        controller: 'HomeController'
    })
    .when('/weather', {
        templateUrl: '/app/views/WeatherView.html',
        controller: 'WeatherController'
    })
    .otherwise({
        redirectTo: '/'
    });
}]);